package com.loong.seller.common.forehead.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import com.loong.common.validator.group.CommonValidate;
import lombok.*;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description: 用户收藏店铺参数
 * @Author: hzp
 * @Date: 2021-1-6 15:00
 */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserShopCollectionParam {

    @NotNull(groups = {CommonUpdate.class},message = "取消收藏时id不能为空")
    private Long id;


    private Long userId;
    /**
     * 店铺id
     */
    @NotNull(groups = {CommonInsert.class},message = "店铺id不能为空")
    private Long shopId;

    @NotEmpty(groups = {CommonValidate.class},message = "店铺集合不能为空")
    private List<Long> shopIdList;

}
